export const add = (payload) => {
  return {
    type: 'ADD',
    payload,
  }
}
export const minus = (payload) => {
  return {
    type: 'MINUS',
    payload,
  }
}
export const minusAsync = (payload) => {
  return (dispatch) => {
    setTimeout(() => {
      dispatch(minus(payload))
    }, 3000)
  }
}

/* 
  export const addAfterOneSecond = (count) => {
  return (dispatch) => {
    // console.log(dispatch)
    setTimeout(() => {
      dispatch(add(count))
    }, 1000)
  }
}
*/
